package com.zhong.controller;

import com.zhong.model.Order;
import com.zhong.service.OrderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author itsome on 2021-08-27 22:08:12
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderServiceImpl orderService;
    @PostMapping("/create")
    public String createOrder(Order order){
        orderService.create(order);
        return "订单创建成功";
    }
}
